

<div style="float: right;">
<form action="/sdksystem/discount" method="post">
优惠价格:<input type="text" name="discount_price" value=""/> 
到期时间:<link type="text/css" rel="stylesheet" href="/javascript/WdatePicker.css">
<script type="text/javascript" src="/javascript/WdatePicker.js"></script>
<input  onclick="WdatePicker()" value="" id="dates" name="expire_time" readonly="readonly">
<input type="submit" value="生成优惠劵"/>
</form>
</div>


<table class="table table-striped">
  <tr><th>优惠劵ID</th><th>优惠代码</th><th>优惠价格</th><th>创建时间</th><th>到期时间</th><th>是否还可以使用?</th></tr>

<?php 	foreach($dt as $v):	?>
	<tr>
	<td><?php echo $v->id; ?></td>
	<td><?php echo $v->discount_code; ?></td>
	<td><?php echo $v->discount_price; ?></td>
	<td><?php echo date('Y-m-d',$v->create_time); ?></td>
	<td><?php echo date('Y-m-d',$v->expire_time); ?></td>
	<td>		
	<span style="color:<?php if($v->expire_time>time()){ echo 'green">Yes';}else{echo 'red">No';} ?></span>
	</td>
	</tr>	
	<?php endforeach ?>
</table>

<?php echo $page;?>